TNFS Client (nicht Server!) für Windows-macOS

← Zurück zum Forum

Hallo zusammen, gibt's es sowas? Googlen hat erst mal nichts gebracht. Viele Grüße, Peter.

Visit https://www.wudsn.com the home of WUDSN IDE.

A Linux file system driver which appears to be written in Python? I don't have too much experience with both. Do you think this can somehow be sued on Windows/macOS?

Visit https://www.wudsn.com the home of WUDSN IDE.

There is a FUSE driver, yes, but there is also a stand-alone client (the tnfs_client.py) too.

-Thom

C:\jac\system\WWW\Tools\TNFS\TNFSClient>python tnfs_client.py File "C:\jac\system\WWW\Tools\TNFS\TNFSClient\tnfs_client.py", line 101 raise ValueError, "Wire data isn't for this command" ^ SyntaxError: invalid syntax

I assume 12 years since the last updates somehow makes it incompatible with Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] on win32

Visit https://www.wudsn.com the home of WUDSN IDE.

JAC! schrieb: C:\jac\system\WWW\Tools\TNFS\TNFSClient>python tnfs_client.py File "C:\jac\system\WWW\Tools\TNFS\TNFSClient\tnfs_client.py", line 101 raise ValueError, "Wire data isn't for this command" ^ SyntaxError: invalid syntax

I assume 12 years since the last updates somehow makes it incompatible with Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] on win32

Yes, your Python is too new, as the code is Python2 (not Python3) code.

In Python 2, not everything required a function call syntax, like the "print" command

print "Hello World"

In Python 3, everything has to be a function call, so the "print()" syntax is

print ("Hello World")

The tnfs_client.py code does contain "python 2" style statements, so you need to find a python 2 interpreter for your OS.

Another telling sign is the new of the (unix) interpreter found in the first line, it references "/usr/bin/python", which is usually the Python 2 interpreter, while Python3 would be "/usr/bin/python3"

Oh the joy of incompatible software upgrades :)

Greetings

Carsten

https://mastodon.social/@cstrotm https://abbuc.social

JAC! schrieb: I assume 12 years since the last updates somehow makes it incompatible with Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)] on win32

Probier's mal damit:

Anhänge:

Excellent, that one works out of the box. Do you have a link for reference where it's from? TNFS-Shell.png

Anhänge:

Visit https://www.wudsn.com the home of WUDSN IDE.

Copyright (c) 2012 Radu Cristescu

Adapted to Python 3 by Thomas Meyer in 2022